package com.tous.common.core.exception;


import lombok.Data;

/**
 * @author mengwei
 *  异常处理
 */
@Data
public class BusinessException extends RuntimeException {

    private String message;

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }


    public static BusinessException exception(String message) {
        return new BusinessException(message);
    }


}
